package com.ee.chat.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ee.chat.common.entity.Channel;
import com.ee.chat.common.entity.ChannelUserLog;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author Shane
 * @since 2020-01-28
 */
public interface ChannelUserLogMapper extends BaseMapper<ChannelUserLog> {

    ChannelUserLog selectByUserId(@Param("userId") Integer userId);

    /**
     * 用户渠道邀请用户的信息
     * @Author Shane
     * @Date 2020/1/30 16:05
     * @param
     * @return
     */
    Channel getUserInviteChannel(@Param("userId") Integer userId);

}